package com.gnerv.sylvanas.business.manage.model.bo;

import com.gnerv.sylvanas.business.manage.model.entity.Dict;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class DictBO {

    private String ukId;
    private String code;
    private String name;
    private String status;
    private Integer sort;

    public Dict toDict() {
        Dict dict = new Dict();
        BeanUtils.copyProperties(this, dict);
        dict.setGmtCreate();
        dict.setGmtModified();
        return dict;
    }
}